package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.base.domain.LoginInfo;
import cn.wolfcode.p2p.business.domain.BidRequest;

import java.math.BigDecimal;

public interface IBidService {
        BigDecimal getUserBidSumByBidRequestId(Long userId, Long bidRequestId);

        void createBid(BidRequest bidRequest, BigDecimal amount, LoginInfo bider);

        void batchUpdateState(Long bidRequestId, int bidRequestState);
}
